package com.example.mysql.jpa.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 * student和teacher关系表主键
 */
@Data
@Embeddable
public class TeacherStudentKey implements Serializable
{
    @Column(name = "student_id")
    private Integer studentId;

    @Column(name = "teacher_id")
    private Integer teacherId;
}
